//
//  Kratos_HttpConfigure.m
//  kk_framework
//
//  Created by 7yao.top on 2018/11/7.
//  Copyright © 2018年 7yao.top. All rights reserved.
//

#import "Kratos_HttpConfigure.h"
@implementation Kratos_HttpConfigure
singleton_m(HttpConfigure)

NSString *const Kra_kLoginSuccessNotification = @"Kra_kLoginSuccessNotification";
NSString *const Kra_kLogoutSDKNotification = @"Kra_kLogoutSDKNotification";

- (instancetype)init
{
    self = [super init];
    if (self) {
        _Kra_enableDebug = NO;
    }
    return self;
}

+ (void)Kratos_addGeneralParameter:(NSString *)sKey Kratos_value:(id)sValue
{
    Kratos_HttpConfigure *manager = [Kratos_HttpConfigure sharedHttpConfigure];
    NSMutableDictionary *mDict = [[NSMutableDictionary alloc ] init];
    mDict[sKey] = sValue;
    [mDict addEntriesFromDictionary:manager.Kra_generalParameters];
    manager.Kra_generalParameters = mDict.copy;
}
 + (void)Kratos_removeGeneralParameter:(NSString *)sKey
{
    Kratos_HttpConfigure *manager = [Kratos_HttpConfigure sharedHttpConfigure];
    NSMutableDictionary *mDict = manager.Kra_generalParameters.mutableCopy;
    [mDict removeObjectForKey:sKey];
    manager.Kra_generalParameters = mDict.copy;
}





@end
